package com.infore.dataAudit.remote;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.infore.dataAudit.remote.impl.BaseDataServiceFallbackFactory;
import com.infore.dataAudit.util.ResultEntity;


@FeignClient(name = "SiteManagement-Service",url="localhost:61007/SiteManagement-Service/",
                    fallbackFactory = BaseDataServiceFallbackFactory.class)
public interface IBaseDataService {
    
    @RequestMapping(value = "outSide/stationInfoAudit", method = RequestMethod.POST)
    ResultEntity stationInfoAudit(@RequestParam(value = "stationMnList") List<String> stationMnList);

    @RequestMapping(value = "statisAndAlarm/queryFrequencyByStationMn", method = RequestMethod.GET)
    ResultEntity queryFrequencyByStationMn(@RequestParam(value = "stationMn") String stationMnList, @RequestParam(value = "projId") String projId);
    
    @RequestMapping(value = "outSide/projectInfoAllAudit", method = RequestMethod.POST)
    ResultEntity projectInfoAllAudit();
    
    @RequestMapping(value = "dataAudit/queryProjectByMn", method = RequestMethod.POST)
    ResultEntity projectInfoByMn(@RequestParam("mns")List<String> mns);
    
    @RequestMapping(value = "station/queryStation", method = RequestMethod.GET)
	@ResponseBody
	ResultEntity queryStation(@RequestParam("stationCode") String stationCode);
    
    /** 查询站点绑定人员的id **/
	@RequestMapping(value = "station/queryUserIdByStationMn", method = RequestMethod.POST)
	@ResponseBody
	ResultEntity queryUserIdByStationMn(@RequestParam("mn") String mn);
}
